package com.foreknow.dao;

import com.foreknow.model.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
//    根据编号查询用户信息
    public User findUserById(int id)throws SQLException;
    /*
       根据用户名查询
     */
    public List<User> findUserByName(String name) throws SQLException;
    /**
     * 添加用户信息
     */
    public void insertUser(User user)throws SQLException;

    /**
     * 根据id修改
     */
    public void deleteUser(int id) throws SQLException;
}
